<?php

namespace App\Http\Middleware;

use Closure;
use App\Models\Admin\Setting;

class SetConfig
{
    /**
     * 设置系统配置
     * @param  \Illuminate\Http\Request $request
     * @param  \Closure $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        Setting::setConfig();
        return $next($request);
    }

}
